﻿package com.artionscript.tools.stamps.grime {

	import com.artionscript.tools.FillVO;
	import com.artionscript.tools.LineVO;
	import com.artionscript.tools.stamps.ArcStamp;
	import com.artionscript.tools.Tool;
	import flash.display.Sprite;
	/**
	 * ...
	 * @author Trevor Boyle
	 */
	public class GrimeStamp7 extends Tool
	{
		
		private const DEFAULT_WIDTH:Number = 50;
		
		public function GrimeStamp7(width:Number=0, height:Number=0, fillVO:FillVO=null, lineVO:LineVO=null, centre:Boolean=false) 
		{
			var container:Sprite = new Sprite();
			
			var s:Sprite = new Sprite;
			setFillAndLineStyle(fillVO, lineVO, s);
			s.graphics.drawPath(Vector.<int>([1,3,3,2,2,1,3,3,3,2,1,3,3,3,3,2,1,3,3,3,2,1,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,2,1,3,3,2,1,3,3,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,2,1,3,3,3,2,1,3,3,3,3,3,2,1,3,3,2,1,3,3,3,3,2]),Vector.<Number>([-94.844,25.808,-97.67225000000002,22.245499999999982,-94.0805,23.182250000000003,-90.48875000000001,24.119,-94.844,25.808,-94.844,25.808,-94.844,25.808,-107.235,-51.026,-103.45714796895874,-53.53611645015493,-103.02,-51.502,-103.69439957205087,-50.70468566723663,-105.26249999999999,-50.249625,-107.06372079554878,-49.72691311085466,-107.235,-51.026,-107.235,-51.026,-89.188,-53.314,-86.17489412598209,-54.278901217630136,-83.880625,-52.05275,-81.52399635977693,-49.76609075086379,-82.039,-45.996,-86.23667165906797,-38.66977854913362,-91.256125,-44.7755,-96.3835163796891,-51.01251853719034,-89.188,-53.314,-89.188,-53.314,-52.718,45.503,-51.31431727482226,49.68108158495429,-55.409000000000006,50.734,-54.92715807822909,50.102304842012494,-54.241625,48.025875,-53.654306505844815,46.24692999098595,-52.718,45.503,-52.718,45.503,-37.639,27.132,-38.25091858438897,28.250178096496555,-38.6595,30.411125,-39.15572688044692,33.03562014286716,-39.428000000000004,33.82,-39.427526382996,34.509586357837385,-39.15637500000001,35.220875,-38.900562191773716,35.89192724764973,-38.935,36.72,-40.046643039836844,37.12019149434126,-40.80200000000001,40.0345,-41.425270242745746,42.43919323188013,-42.546,41.807,-42.068176355280734,40.39990828838632,-41.598015625,37.901062499999995,-41.60622266486209,37.944681895822875,-41.213912109375,35.78965624999999,-40.98224019089158,34.51704474677683,-40.804625,33.68875,-39.73467138584462,28.699103824742686,-37.639,27.132,-37.639,27.132,18.633,29.628,14.616871347296195,29.163008102066012,15.508999999999999,26.697,15.6997700577529,26.899812656589006,17.228125,27.856875,18.29197765475149,28.523064041992743,18.633,29.628,18.633,29.628,13.296,2.073,13.634880215192121,3.8320637318629944,12.203999999999999,5.481,12.36448644965187,2.4388377411579625,13.296,2.073,13.296,2.073,5.602,-60.103,6.289040814103705,-58.8834533400079,4.526,-58.011,4.11203081639325,-59.5453857783685,5.602,-60.103,5.602,-60.103,108.597,41.856,106.81812344219867,42.769090241530634,104.81912499999999,41.555499999999995,104.26760502811696,41.22067269760835,103.197984375,40.379437499999995,102.17286279265724,39.57319992934197,101.654,39.275,98.11407567587737,37.24211045903179,93.27992187500001,35.221234375,91.4400234267842,34.452080780761506,88.95508789062501,33.492166015625,88.08736155182329,33.156968859564756,86.77946313476563,32.659013916015624,84.64080832514833,31.844765866545654,84.603125,31.830375,79.17146011862918,29.756079164351366,76.012015625,28.314828125,71.38344189173053,26.203401031648436,67.895,23.887,64.43882346972694,22.33591415723012,58.141875,20.3875,54.198557251867236,19.16735088112816,53.180703124999994,18.83659375,50.37719173396371,17.925577760274347,48.244,17.08,46.48054671031177,16.381789494719477,42.812749999999994,14.404999999999998,39.337959886769646,12.5322330135208,37.385999999999996,11.822999999999999,35.61965353573139,11.182638245121456,33.034640624999994,10.364359375,32.532792641418126,10.205500748308685,30.864849609375,9.684041015624999,29.525947204945442,9.265451365684651,28.717125,9.005374999999999,23.59590937867849,7.358650740283856,20.619,5.842,19.929408433127843,5.490597264301828,18.623365234375,4.75266015625,16.728903541268377,3.682256371397375,16.281734375,3.43590625,13.211556245966552,1.7445133458098536,11.061625,0.9377499999999999,4.596593600700328,-1.4882579815342662,1.982,2.206,3.253556005937627,4.259444481638402,4.193125,7.531859375,4.489369707642519,8.563646928117759,4.9354765625,10.378017578125,5.439653158249979,12.4285649028048,5.65125,13.208625,7.499999044890418,20.024111222381723,11.482,22.31,10.755984733593928,22.429529059934364,9.61,22.051875,8.884656239519966,21.812841260750897,7.662999999999999,22.66,6.663226588078793,21.95942603568807,4.320874999999999,18.870375000000003,2.344734712906364,16.26427682431223,0.6419999999999995,15.737,0.0490433301589032,16.523263241510293,-2.5890000000000004,17.714375,-5.0094874245892,18.807257364646755,-5.457000000000001,19.877,-1.042502771956732,23.830034235677562,2.1331249999999993,29.30775,5.754198383931222,35.55382547965439,6.261999999999999,41.455,4.617008444632318,39.958225811778135,1.7928749999999989,33.09437499999999,-0.8773042044117743,26.604698765107713,-3.412000000000001,24.898,-5.39489879792072,26.500182228719947,-5.930000000000001,26.58,-7.148302062372574,25.836157096435137,-8.89240625,24.462484375000003,-11.504454329017012,22.405210951384316,-11.780750000000001,22.200875,-15.28960636705418,19.60588137783402,-18.341,19.201,-18.535985068891698,19.558050580697785,-17.58,21.577,-18.192621400776677,21.97504574663201,-18.621874999999996,21.3505,-19.078459847254322,20.686188448867362,-19.546,20.896,-19.29203601026402,22.971535225888005,-20.18225,27.043750000000003,-21.16466049986742,31.537710550978687,-21.141,33.637,-21.126512961819202,34.875920361346346,-20.756828125,37.106421875,-20.322357490993696,39.72780990683591,-20.244874999999997,40.637625,-19.89677083141319,44.72513461038883,-22.212999999999997,46.646,-24.55235665634643,44.905789606612,-23.985999999999997,40.230875,-23.907362496729107,39.5817723390723,-23.69846875,38.237943359375,-23.487244137180706,36.879119745090364,-23.40325,36.194328125,-23.107399136041632,33.78230034264049,-23.358999999999998,32.165,-23.44987226280442,31.585953488176493,-24.011499999999998,30.663999999999998,-24.625574297723787,29.65595160194016,-24.772,29.124,-25.006402448945728,28.2688975338833,-25.129359375,26.716734374999998,-25.29766580013477,24.5920957647095,-25.354625,24.178125,-25.759302948570244,21.236987480037083,-27.564,20.409,-28.304391987288756,21.504889245205135,-29.603109375,23.092953125,-29.762846356638207,23.288278553925032,-30.710361328124996,24.433177734375,-31.389926971182494,25.25430897895853,-31.816125,25.789375,-34.45887545666375,29.107189433294973,-35.325,31.631,-35.47492531441439,32.06854294794941,-35.569421875,32.94695312499999,-35.68846653141459,34.05355464647376,-35.750375000000005,34.368375,-36.071259494471875,36.000154501238164,-37.351,36.211,-36.92986776098065,34.442549764407865,-36.44728125,31.797109374999998,-36.36076490217917,31.32284448018518,-36.04751171875,29.563322265625,-35.80188129115344,28.18363255522247,-35.64125,27.332874999999998,-34.62724570521375,21.96236587551465,-33.333,18.762999999999998,-36.248934825005676,13.516321393907319,-40.6545,15.069999999999999,-43.794184312933176,16.17724961568531,-47.562,20.700999999999997,-48.37333331693629,21.676037926215866,-49.81975,22.956624999999995,-51.240388841008745,24.214389624546538,-51.553999999999995,24.600999999999996,-52.25184402295062,25.4622260206728,-53.019375,27.603499999999997,-53.85385679057118,29.931554759746184,-54.388,30.749999999999996,-54.96984449113882,31.642615232994643,-57.568125,34.977374999999995,-59.33031934991592,37.23906106495816,-59.741,38.58,-59.95865958014512,39.29119002349741,-59.907875000000004,40.798625,-59.856135352092004,42.334409183024974,-60.056,43.048,-60.34508749340708,44.08292208622419,-61.68899999999999,45.917,-63.34681171928764,48.17946563271637,-63.808,49.056000000000004,-64.4173325271881,50.212977347690725,-65.4565,53.135125,-66.35090383903031,55.65019609952809,-67.054,56.648,-67.60568705679638,57.43175426998034,-69.069125,58.432875,-70.63136087223114,59.501582234313766,-71.172,60.151,-72.39379544924172,61.61690059355634,-73.75878125,63.84703125000001,-74.2040822151814,64.57456946559414,-74.90401171874998,65.77856640625001,-75.75488020360271,67.24220388322452,-76.01875,67.685,-78.73900061160998,72.2498134948478,-81.197,73.848,-83.41851769945883,73.7554979411329,-84.051,70.394,-83.24469018344021,68.18822719114064,-80.31375,64.420625,-77.37872214990733,60.6477682827099,-76.545,58.379000000000005,-76.32091353205215,57.768375381053666,-76.273,56.07350000000001,-76.22913295803824,54.52176364752862,-75.833,53.783,-75.17068686754953,52.54491290745758,-73.47987499999999,51.466625,-71.18804306945476,50.00504627319958,-70.655,49.502,-69.45574873859172,48.37362119564098,-68.15625,45.699250000000006,-66.57864006221116,42.45252535896521,-65.824,41.403000000000006,-65.28552168185784,40.653560538609206,-63.953250000000004,39.65337500000001,-62.564578583109316,38.61084809804173,-62.102,38.026,-60.19353604624495,35.617200912371956,-58.332828125,32.18775,-57.22357414903743,30.143295834742414,-55.231624999999994,25.924250000000004,-53.271650157453365,21.77292731204777,-52.208609374999995,19.831375,-50.44842870868304,16.61655681172478,-48.67399999999999,14.505000000000003,-48.80307692844598,13.968048669713733,-48.55524999999999,10.689625000000003,-48.37840657709682,8.350219564463131,-49.769999999999996,6.995000000000003,-49.592074399289174,6.87046432489821,-52.315625,8.330625000000003,-53.81906480102782,9.136655067614955,-54.016,10.102000000000004,-57.112802931697765,3.4631116303715235,-64.064,3.2760000000000042,-64.30980929547484,3.463024435295768,-67.07135937499999,5.669984375000005,-69.07481632935922,7.271095747911625,-70.47312499999998,8.225125000000004,-74.67600251119995,11.09263785522085,-77.705,11.141000000000005,-78.7895428762348,8.778673003767118,-76.66574999999999,7.273250000000005,-76.01144921359214,6.809457383373686,-74.62587499999998,6.160343750000005,-73.12186319132401,5.45574448697277,-72.637,5.150000000000006,-67.30594000937631,1.7863435975032993,-64.84462500000001,-1.3483749999999943,-61.449957926922856,-5.671806160078701,-63.389,-9.606999999999994,-63.06735721534403,-10.1921384209458,-61.946625000000004,-10.241499999999995,-60.53967494356661,-10.303467770253317,-59.824000000000005,-10.749999999999995,-58.28862405770033,-14.15318190513394,-63.028000000000006,-18.021999999999995,-64.7962542258623,-19.467285417485627,-68.035578125,-19.897171874999998,-69.19461620780943,-20.050986310066477,-70.922177734375,-20.123869140624997,-71.31908005530741,-20.140613762544373,-72.37566772460937,-20.17613891601562,-73.2848701843426,-20.20670860545729,-73.803375,-20.232124999999996,-80.70382622094155,-20.57037564967193,-81.36500000000001,-24.812999999999995,-77.50656617592306,-29.00308659085395,-69.50412500000002,-25.790749999999996,-65.06377597616398,-24.00830695145288,-63.01779687500001,-23.696999999999996,-59.25121257057499,-23.123893521769705,-56.105000000000004,-25.044999999999995,-51.34252720948066,-33.40189205382102,-58.233000000000004,-34.407999999999994,-58.63274361877476,-35.503388251699285,-57.18300000000001,-36.51412499999999,-55.7215488833008,-37.533024017980416,-56.07900000000001,-38.590999999999994,-56.02979347813963,-39.480950212571514,-56.72237500000001,-39.59237499999999,-57.462565813736546,-39.71145932650019,-57.50600000000001,-40.31999999999999,-56.18751023247725,-40.830104237926825,-56.57200000000001,-41.49199999999999,-56.80137736794236,-43.21081721624342,-57.89718750000001,-45.91862499999999,-58.02884347809934,-46.24395424440662,-58.82938281250001,-48.14082031249999,-59.38771217031027,-49.463773436900226,-59.676500000000004,-50.26574999999999,-61.408710903756784,-55.0761762172382,-58.24200000000001,-56.24499999999999,-57.551156616853824,-55.53763203739962,-56.761890625000014,-53.81810937499999,-55.71482560539593,-51.53693667935871,-55.441625000000016,-51.08062499999999,-53.696991833865006,-48.16666187480732,-50.55400000000001,-49.97299999999999,-49.99269688096893,-52.70195579876935,-52.095500000000015,-56.078624999999995,-52.31759969701389,-56.435271421018705,-52.99380468750001,-57.467482421875,-53.56978499144404,-58.346702797903525,-53.892437500000014,-58.888203125,-54.89616552318241,-60.57273691431308,-55.281000000000006,-61.998999999999995,-55.315053361908056,-62.039766473498375,-56.884437500000004,-63.721921875,-58.103889205067325,-65.0289997425279,-58.75600000000001,-65.982125,-60.77519630851852,-68.93338269485551,-58.86500000000001,-70.458,-56.77139282777521,-69.17347090564785,-54.76159375000001,-66.06062500000002,-54.02693817952465,-64.92276519605028,-53.06488671875002,-63.171515625000005,-52.80470131057677,-62.697892744067985,-52.24807568359376,-61.665548828125,-51.716457516006216,-60.67958491574029,-51.43050000000001,-60.161,-47.26637117071398,-52.60933838177525,-42.90100000000001,-51.988,-40.262168729973794,-56.718392513836285,-42.06800000000001,-67.106,-42.238393076836566,-68.09043480867858,-43.297953125000014,-70.91232812499999,-44.576112593005845,-74.31641047617052,-45.05337500000002,-75.956625,-46.97793936582737,-82.57080281625787,-44.35700000000001,-85.15299999999999,-41.49330412625586,-87.97543809190702,-37.76337500000001,-84.646125,-34.4791440573478,-81.71463952022252,-33.78500000000001,-78.059,-33.19791215301655,-74.97387280409684,-36.47862500000001,-68.690125,-39.738516333639275,-62.4462579001455,-39.00500000000001,-58.914,-38.14731795804549,-54.781962759202564,-35.92900000000001,-52.039,-32.007480375250054,-47.18611946437193,-25.87900000000001,-45.211,-19.429580020481207,-43.13815539242195,-15.23000000000001,-44.692,-13.68257502476596,-46.263000343180856,-10.675515625000008,-49.004484375000004,-7.602746625321054,-51.805874712265826,-6.264375000000008,-53.152625,-1.4162129033662068,-58.031138243328286,0.37099999999999156,-62.796,0.6400063921506162,-63.513786511351334,0.9288124999999915,-65.07565625000001,1.2372831104775706,-66.74387204832614,1.4674999999999916,-67.44925,2.3331802241802304,-70.10166939721958,4.930999999999991,-70.373,7.633074880377522,-67.37579257188045,3.1439999999999912,-63.685,1.1504534268793003,-56.90882828852509,-2.1290000000000084,-51.513000000000005,-1.873033900948248,-48.80109773488299,-0.8750000000000084,-46.23700000000001,3.2109374961298762,-43.91288876366925,4.198999999999991,-41.31200000000001,4.634359569712681,-41.085079092201646,5.491749999999991,-41.60475000000001,6.579395837350844,-42.26398047388089,7.3679999999999914,-42.32800000000001,7.762255553239879,-42.1583572596401,8.69512499999999,-41.05112500000001,9.462909172441506,-40.139834135966694,10.235999999999992,-40.18900000000001,14.099393700356364,-40.81686786271257,18.887874999999994,-42.76412500000001,19.615632010874098,-43.060070613015355,20.875150390624995,-43.591275390625,22.310866273904065,-44.19679187116953,22.883109374999993,-44.432921875000005,25.287171047477347,-45.42493224759094,27.142999999999994,-46.04200000000001,30.099118747451154,-47.0268294117267,33.34012499999999,-50.207750000000004,36.87693881431045,-53.67899411438021,38.818,-54.58800000000001,40.26636045876725,-55.267088060679804,41.955609374999995,-56.19254687500001,44.51459956387711,-57.59449539975431,44.463874999999994,-57.567875000000015,47.09318643817132,-58.94774534708076,49.527,-59.33200000000001,52.30574188856339,-57.91667227308178,51.177,-54.18300000000001,49.29149160465193,-53.13140491023458,47.496390625,-51.447265625000014,46.88083162306952,-50.86975655487967,46.029474609375,-49.983919921875014,44.745655712561856,-48.64810687206467,44.652125,-48.55337500000001,41.335913021236415,-45.19457487641728,37.647999999999996,-44.60600000000001,36.9910277840037,-44.501290911102146,35.28462499999999,-44.77162500000001,33.685308701567905,-45.024994086389874,32.784,-44.79400000000001,30.02974023823074,-44.08928647771726,25.310125,-40.89562500000001,20.129677709078184,-37.390128446733556,17.558,-36.42200000000001,17.55229158191907,-34.396780118621834,15.77525,-32.54225000000001,15.199823918017202,-31.941732256951457,14.08934375,-31.01131250000001,12.767740021497529,-29.90400211727164,12.347,-29.510000000000012,13.667315958867887,-27.05318452563956,13.632,-26.86400000000001,13.448768021608085,-26.487830959614914,12.31725,-25.722000000000012,11.359173788383426,-25.073557455988404,11.366999999999999,-24.391000000000012,11.570550389070894,-24.27266181877357,12.285625,-22.639625000000013,12.795064460488693,-21.476203193101806,13.841,-22.125000000000014,14.278024225892064,-21.441552447655575,13.521249999999998,-20.779375000000012,12.931993493750374,-20.26377555703159,13.683,-19.892000000000014,15.830633972146687,-18.679968946412277,20.643125,-20.920500000000015,25.251523665413874,-23.066012637304155,27.121000000000002,-21.577000000000012,26.884972002767785,-18.72978400730095,21.264875000000004,-17.949125000000013,15.605287510040817,-17.162980570558993,15.333000000000002,-14.742000000000012,15.534569051126931,-14.67568188058443,18.322250000000004,-14.767500000000013,20.151414857901475,-14.827747381401917,20.578000000000003,-13.36500000000001,19.010272709011492,-12.619380128407384,16.221875000000004,-13.255625000000009,13.150969419119948,-13.95633133061623,11.769000000000004,-13.60000000000001,10.807930114768835,-13.352190500444888,9.211125000000003,-12.22725000000001,7.424679868901158,-10.968709141626952,6.603000000000003,-10.634000000000011,6.435659974954488,-10.566039934195713,5.535953125000003,-10.48814062500001,4.495766524543549,-10.3980781589709,3.9218750000000036,-10.271125000000012,1.8368641286100569,-9.809890245187885,2.1040000000000036,-8.319000000000011,4.749914968146547,-8.732197679957146,4.481000000000003,-9.082000000000011,1.7045323264233097,-7.386839348232535,1.693,-6.876,3.7378669454965636,-4.452186017721897,10.725999999999999,-3.2180000000000004,18.73654076551182,1.9429709022465809,29.16575,6.587499999999999,33.56947174210154,8.54864713107525,38.83496875,10.61584375,43.00215424750247,12.251851093266438,48.669,14.323,47.818516998895824,14.587974603359088,49.334999999999994,13.674,49.13719449741215,13.116641786979054,49.349999999999994,12.36,48.79063948978512,12.530096172374275,49.461999999999996,14.07,52.51596323269986,16.87914908952921,58.00375,18.303375,59.45891778767311,18.681029554589433,62.81068749999999,19.359890625,65.97811077324022,20.00141451782808,67.672,20.466,71.61238441031772,21.54679115254429,78.17875000000001,24.982750000000003,78.9514349035586,25.387070090682936,80.84182421875,26.391722656250003,82.53896660792216,27.293673615088235,83.49653125,27.79059375,86.56015641989133,29.380436321294233,88.735,30.314,91.18333464535975,31.364374606702377,96.291,33.894999999999996,101.11228155270403,36.283734711138806,103.649,37.329,104.16120636085043,37.53904647767845,105.52054687500001,37.845515625000004,106.81417003725775,38.13716851356308,107.400625,38.406375,109.35364045772761,39.30288788288766,108.597,41.856,108.597,41.856,-72.702,78.55,-73.63683538155864,79.70090815048883,-74.704125,82.48175,-75.75769265581474,85.22683903483914,-76.74,86.39699999999999,-75.87604673398872,80.30919238962213,-72.702,78.55,-72.702,78.55,-62.361,60.388,-62.71025303659453,60.733221784335825,-63.133875,62.139250000000004,-63.483511064475195,63.29971431566954,-64.371,63.652,-64.69978525708322,59.74615291816886,-62.361,60.388,-62.361,60.388,-56.485,-26.231,-57.0880390544695,-26.289414039464287,-58.380609375,-26.266203125000004,-60.07575605337576,-26.23576307548684,-60.529625,-26.244125000000004,-63.05481949313033,-26.290648310064864,-63.315,-27.098000000000003,-62.93317255757752,-27.032847585037928,-59.699375,-27.05675,-57.48420936600134,-27.07312325999876,-56.485,-26.231,-56.485,-26.231,-112.846,-10.565,-109.88589876603015,-10.84909134843395,-110.035,-8.457999999999998,-112.82262068759586,-8.191999790979548,-112.846,-10.565,-112.846,-10.565,107.972,-29.25,108.27282704957797,-29.516548132337263,111.222,-29.576,110.88458133608033,-30.343840119239033,112.26174999999999,-27.69075,112.85373082047296,-26.550309829726512,112.847,-25.351,107.56741350098059,-23.49047777117089,107.972,-29.25,107.972,-29.25]),"evenOdd");
			s.graphics.endFill();
			container.addChild(s);
			
			if (width == 0) {
				width = DEFAULT_WIDTH;
			}
			
			if (height == 0) {
				height = (width / container.width) * container.height;
			}
			
			container.width = width;
			container.height = height;
			
			if (centre) {
				container.x = 0 - container.width / 2;
				container.y = 0 - container.height / 2;
			}
			
			this.addChild(container);
		}
		
	}

}